<?php


return [
    'secret'      => env('JWT_SECRET', ''),
    //Asymmetric key
    'public_key'  => env('JWT_PUBLIC_KEY', ''),
    'private_key' => env('JWT_PRIVATE_KEY', ''),
    'password'    => env('JWT_PASSWORD', ''),
    // Token 过期时间 单位为分钟
    'ttl'         => env('JWT_TTL', 60000000),
    // Token 自动刷新有效期，需大于jwt.ttl
    'refresh_ttl' => env('JWT_REFRESH_TTL', 1200000000),
    //JWT hashing algorithm
    'algo'        => env('JWT_ALGO', 'HS256'),
    //token获取方式，数组靠前值优先
    'token_mode'    => ['header'],
    //黑名单后有效期
    'blacklist_grace_period' => env('BLACKLIST_GRACE_PERIOD', 10),
];
